<template>
  <div class="container">
    <input type="text" v-model="content">
    <div v-highlightText="content">内容：123456789abc</div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const content = ref('')
</script>